package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2025/3/6 15:31
*/

// CGGameAUFlowMonitor 云游戏流量监控表
type CGGameAUFlowMonitor struct {
	ID             int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	ApiName        string         `json:"api_name" gorm:"column:api_name;type:varchar(124);not null;default:'';comment:接口名字"`
	ApiAddr        string         `json:"api_addr" gorm:"column:api_addr;type:varchar(500);not null;default:'';comment:接口地址"`
	TodayHourCount string         `json:"today_hour_count" gorm:"column:today_hour_count;type:varchar(1000);not null;default:'';comment:当天每个小时独立的数据；【隔离符号 /##/】"`
	TodaySumCount  string         `json:"today_sum_count" gorm:"column:today_sum_count;type:varchar(1000);not null;default:'';comment:当天每个小时总和的数据；【隔离符号 /%%/】"`
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt      gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUFlowMonitor) TableName() string {
	return "cg_game_au_flow_monitor"
}
